home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2003 November / PCWK1103B.iso / CINEMA 4D CE 6 / Libs / gui_coremsg.cox < prev    next >
Text File  |  2000-09-28  |  9KB  |  232 lines

  1. enum
  2. {
  3.     _DEFINE_CORE_MESSAGE_
  4. };
  5.  
  6. enum
  7. {
  8.     // IMPORTANT: maximum event number is 2000 (see GeEventsDoIt)
  9.     // priority groups start at each multiple of 50 
  10.  
  11.     MESSAGE_CINEMA_NEWDOK                = 605, 
  12.     MESSAGE_CINEMA_DOKCHANGED        = 604, 
  13.     MESSAGE_CINEMA_NEWAKTU            = 603,    
  14.     MESSAGE_CINEMA_AOBJCHANGED    = 602, 
  15.     MESSAGE_CINEMA_REDRAWALL        = 601, 
  16.  
  17.     MESSAGE_PAINTER_NEWAKTUBITMAP        = 650,    
  18.     MESSAGE_PAINTER_BITMAPCHANGED        = 651,
  19.  
  20.     MESSAGE_PAINTER_NEWAKTUBRUSH        = 700,
  21.     MESSAGE_PAINTER_BRUSHCHANGED        = 701,
  22.  
  23.     MESSAGE_PAINTER_NEWAKTUCOLOR        = 750,
  24.     MESSAGE_PAINTER_COLORCHANGED        = 751,
  25.  
  26.     MESSAGE_PAINTER_NEWAKTUPOLY            = 800,
  27.     MESSAGE_PAINTER_POLYCHANGED            = 801,
  28.  
  29.     MESSAGE_PAINTER_TOOLCHANGED            = 850,
  30.     MESSAGE_PAINTER_UNDOCHANGED            = 900,
  31.  
  32.     MESSAGE_PAINTER_INPUTDEVCHANGED    = 950,
  33.  
  34.     MESSAGE_TOOLCHANGED                            = 4294141029,//0xFFF36465,
  35.  
  36.     MESSAGE_TIMECHANGED                            = 'tchg'
  37.  
  38. };
  39.  
  40. enum
  41. {
  42.     VIEW_SINGLE         = 0,
  43.     VIEW_2V             = 1,
  44.     VIEW_2H             = 2,
  45.     VIEW_2SPLIT_TOP     = 3,
  46.     VIEW_2SPLIT_BOTTOM  = 4,
  47.     VIEW_2SPLIT_LEFT    = 5,
  48.     VIEW_2SPLIT_RIGHT   = 6,
  49.     VIEW_4T             = 7,
  50.     VIEW_3SPLIT_TOP     = 8,
  51.     VIEW_3SPLIT_BOTTOM  = 9,
  52.     VIEW_3SPLIT_LEFT    = 10,
  53.     VIEW_3SPLIT_RIGHT   = 11,
  54.     VIEW_4H             = 12,
  55.     VIEW_4V             = 13,
  56.  
  57.     VIEW_DUMMY
  58. };
  59.  
  60. enum
  61. {
  62.     COREMSG_CINEMA                                            = 'CMci',    // container request to C4D core
  63.     COREMSG_PAINTER                                            = 'CMpa',    // container request to painter core
  64.     COREMSG_AMBER                                                = 'amb6',
  65.  
  66.     COREMSG_SETDATA                                            = 'setd', // modeling tools
  67.  
  68.     // data container
  69.     CM_DISABLED                                                    = 'disb',
  70.     CM_TYPE_BUTTON                                            = 'bttn',
  71.     CM_TYPE_STRING                                            = 'strg',
  72.         CM_STRING                                                    = 'strg',
  73.     CM_TYPE_INT                                                    = 'vint',
  74.     CM_TYPE_FLOAT                                                = 'vflt',
  75.         CM_VALUE_VAL                                            = 'valu',    // necessary
  76.         CM_VALUE_MIN                                            = 'mini',    // unnecessary
  77.         CM_VALUE_MAX                                            = 'maxi',    // unnecessary
  78.         CM_VALUE_MIN2                                            = 'min2', // for second range of slider with ints
  79.         CM_VALUE_MAX2                                            = 'max2', // for second range of slider with ints
  80.         CM_VALUE_STEP                                            = 'step',    // unnecessary
  81.         CM_VALUE_FORMAT                                        = 'frmt',    // unnecessary
  82.             FORMAT_REAL                                            = 'frea',
  83.             FORMAT_LONG                                            = 'flng',
  84.             FORMAT_PERCENT                                    = 'fpct',
  85.             FORMAT_DEGREE                                        = 'fdgr',
  86.             FORMAT_METER                                        = 'fmet',
  87.         CM_VALUE_QUADSCALE                                = 'quad',    // quadscale of the slider
  88.  
  89.     COREMSG_SYSTEM                                            = 'CMsy',    // container request to C4D OS
  90.         COREMSG_SYSTEM_GETINPUTDEVICEDATA = 'Sgdd', // input device data
  91.             CSD_INPUTDEV_NAME                                = 'idna', // input device data
  92.             CSD_INPUTDEV_ID                                    = 'idid', // input device data
  93.             CSD_INPUTDEV_SUPPORT                        = 'idsp',    // ...
  94.  
  95.         // request bitmap data
  96.         COREMSG_PAINTER_GETBITMAPDATA         = 'Pgbd', // get data of requested layer
  97.         COREMSG_PAINTER_SETBITMAPDATA          = 'Psbd', // set data of requested layer
  98.             PGD_BITMAP_MARKER                                = 'bmid',    // set/get bitmap marker; set only: 0 == active
  99.             PGD_BITMAP_NAME                                    = 'name', // set/get layer name (string)
  100.             PGD_BITMAP_TYPE                                    = 'type',    // get type of bitmap (enum)
  101.                 PGD_BITMAPTYPE_GROUP                    = 'grou',    // paint layer group
  102.                 PGD_BITMAPTYPE_PIXELLAYER            = 'pixe',    // paint layer
  103.             PGD_LAYER_STRENGTH                            = 'stre', // set/get coverage (real)
  104.             PGD_LAYER_BLENDING                            = 'blnd', // set/get blending (enum)
  105.                 PGD_BLEND_NORMAL                            = 'nrml',
  106.                 PGD_BLEND_DISSOLVE                            = 'disv',
  107.                 PGD_BLEND_DIFFERENCE                    = 'diff',
  108.                 PGD_BLEND_LIGHTEN                            = 'ligt',
  109.                 PGD_BLEND_DARKEN                            = 'dark',
  110.                 PGD_BLEND_MULTIPLY                        = 'mult',
  111.                 PGD_BLEND_SCREEN                            = 'scrn',
  112.                 PGD_BLEND_ADD                                    = 'add_',
  113.                 PGD_BLEND_EXCLUSION                        = 'excl',
  114.                 PGD_BLEND_ERASE                                = 'eras',
  115.                 PGD_BLEND_REPLACEVOXEL                = 'repl',
  116.             PGD_LAYER_MODE                                    = 'mode', // set/get mode (enum)
  117.                 PGD_MODE_RGB                                    = 'rgb_',
  118.                 PGD_MODE_RGBA                                    = 'rgba',
  119.                 PGD_MODE_GREY8                                = 'gry8',
  120.                 PGD_MODE_GREY8A                                = 'gr8a',
  121.                 PGD_MODE_CMYK                                    = 'cmyk',
  122.                 PGD_MODE_CMYKA                                = 'cmka',
  123.             PGD_LAYER_SHOW                                    = 'show', // set/get layer visibility
  124.             PGD_LAYER_XOFFSET                                = 'xoff', // set/get x offset
  125.             PGD_LAYER_YOFFSET                                = 'yoff', // set/get y offset
  126.             PGD_BITMAP_WIDTH                                = 'widt', // get width
  127.             PGD_BITMAP_HEIGHT                                = 'heig', // get height
  128.             PGD_MEMORY_USAGE                                = 'memo',    // get memory usage
  129.  
  130.         // request data of current tool
  131.         COREMSG_PAINTER_GETTOOL                        = 'Pgtd', // get tool mode data (container)
  132.         COREMSG_PAINTER_SETTOOL                        = 'Pstd', // set tool mode data (container)
  133.             PGD_TOOL_MODE                                        = 'bmmd',    // set/get tool mode
  134.                 PGD_TOOLMODE_DRAWBRUSH                = 'tdrw',    // draw with brush
  135.                 PGD_TOOLMODE_FILLBITMAP                = 'fill', // fill bitmap
  136.                 PGD_TOOLMODE_MAGICWAND                = 'magc', // fill bitmap
  137.                 PGD_TOOLMODE_PICKUP                        = 'pick', // pick color
  138.                 PGD_TOOLMODE_MOVESPLINE                = 'spmv',    // move spline
  139.                 PGD_TOOLMODE_EDITSPLINE                = 'sped', // edit spline
  140.                 PGD_TOOLMODE_MOVELAYER                = 'lymv',    // move layer
  141.                 PGD_TOOLMODE_DRAWLINE                    = 'line',    // draw line
  142.                 PGD_TOOLMODE_DRAWCIRCLE                = 'crcl',    // draw circle
  143.                 PGD_TOOLMODE_DRAWRECTANGLE        = 'rect', // draw rectangle
  144.                 PGD_TOOLMODE_DRAWTEXT                    = 'text', // text tool
  145.                 PGD_TOOLMODE_TRANSFORMBITMAP    = 'trns', // distort bitmap
  146.                 PGD_TOOLMODE_UVEDIT                        = 'uved', // uvedit mode
  147.                 PGD_TOOLMODE_SELECTIONTOOLS        = 'sele',    // draw circle
  148.                 PGD_TOOLMODE_SELECTCOLORRANGE    = 'selc',    // select colorrange
  149.                 PGD_TOOLMODE_MAGNIFY                    = 'magn', // magnify
  150.                 PGD_TOOLMODE_CLONE            = 'clon', // clone tool
  151.  
  152.         // for all tools
  153.         PGD_TOOLACTIVE                                        = 'Pact', // tool is active
  154.  
  155.         COREMSG_PAINTER_GETBRUSHDATA            = 'Pgbr',    // get brush data
  156.         COREMSG_PAINTER_SETBRUSHDATA            = 'Psbr',    // set brush data
  157.             PGD_BRUSH_MARKER                                = 'mark',    // brush marker
  158.             PGD_BRUSH_NAME                                    = 'name',    // brush name
  159.             PGD_BRUSH_PRESSURE                            = 'pres', // brush pressure (real)
  160.             PGD_BRUSH_PRESSURE_MODIFY                = 'mprs',    // pressure control
  161.                 PGD_MODIFY_NONE                                = 'none', // no control
  162.                 PGD_MODIFY_PENPRESSURE                = 'pprs', // pen pressure
  163.                 PGD_MODIFY_PENTILT                        = 'ptlt', // pen tilt
  164.                 PGD_MODIFY_PENDIRECTION                = 'pdir', // pen direction
  165.                 PGD_MODIFY_DRAWDIRECTION            = 'ddir', // draw direction
  166.                 PGD_MODIFY_DRAWRANDOM                    = 'drnd', // randomness
  167.                 PGD_MODIFY_DRAWWHEEL                    = 'dwhl', // mousewheel
  168.                 PGD_MODIFY_DRAWDISTANCE                = 'ddst', // distance
  169.             PGD_BRUSH_SIZE                                    = 'size', // brush size (real 1..500)
  170.             PGD_BRUSH_SIZE_MODIFY                        = 'msiz', // brush size control
  171.             PGD_BRUSH_HARD                                    = 'hard', // brush hardness (real 0..1)
  172.             PGD_BRUSH_HARD_MODIFY                        = 'mhar', // brush hardness control
  173.             PGD_BRUSH_DISTANCE                            = 'dist', // brush distance (real 1..oo)
  174.             PGD_BRUSH_DISTANCE_MODIFY                = 'mdis', // brush distance control
  175.             PGD_BRUSH_DISTANCE_ONOFF                = 'mdon', // distance on/off
  176.  
  177.         COREMSG_PAINTER_GETFILLDATA                = 'Pgfl',    // get fill data
  178.         COREMSG_PAINTER_SETFILLDATA                = 'Psfl',    // set fill data
  179.             PGD_FILL_TOLERANCE                            = 'tole', // color tolerance (real 0..1)
  180.             PGD_FILL_AA                                            = 'anti', // antialiasing (bool)
  181.             PGD_FILL_MERGELAYER                            = 'merg',    // merge layer (bool)
  182.  
  183.         COREMSG_PAINTER_GETMAGICDATA            = 'Pgma',    // get fill data
  184.         COREMSG_PAINTER_SETMAGICDATA            = 'Psma',    // set fill data
  185.             PGD_MAGIC_MODE                                    = 'mamo', // mode
  186.                 PGD_MAGIC_NEWSELECT                        = 'senw', // create new selection
  187.                 PGD_MAGIC_NEWINVERSESELECT        = 'seiv', // create invert selection
  188.                 PGD_MAGIC_ADDSELECT                        = 'sead', // add to selection
  189.                 PGD_MAGIC_SUBSELECT                        = 'sesb', // subtract from selection
  190.  
  191.         COREMSG_PAINTER_GETLINEDATA                = 'Pgli',    // get line data
  192.         COREMSG_PAINTER_SETLINEDATA                = 'Psli',    // set line data
  193.             PGD_LINE_WIDTH                                    = 'liwd', // line thickness (real)
  194.             PGD_LINE_BEGIN                                    = 'libg',    // start form
  195.             PGD_LINE_END                                        = 'lied',    // end form
  196.                 PGD_CAPS_NONE                                    = 'none', 
  197.                 PGD_CAPS_OUT_CIRCLE                        = 'ocrc', 
  198.                 PGD_CAPS_IN_CIRCLE                        = 'icrc',
  199.                 PGD_CAPS_OUT_SPICE                        = 'ospc',
  200.                 PGD_CAPS_IN_SPICE                            = 'ispc',
  201.                 PGD_CAPS_OUT_BEVEL                        = 'obvl',
  202.                 PGD_CAPS_IN_BEVEL                            = 'ibvl',
  203.                 PGD_CAPS_ARROW                                = 'arrw',
  204.             PGD_POLY_DRAWMODE                                = 'pldr',    // draw mode (filled/outline)
  205.                 PGD_DRAWMODE_FILLED                        = 'dmfl', // filled
  206.                 PGD_DRAWMODE_OUTLINED                    = 'dmol', // outline
  207.  
  208.         COREMSG_PAINTER_GETPOLYFILLDATA        = 'Pgpf',    // get polyfill data
  209.         COREMSG_PAINTER_SETPOLYFILLDATA        = 'Pspf',    // set polyfill data
  210.             PGD_POLYFILL_BORDER                            = 'pfbd', // soft edge
  211.             PGD_POLYFILL_ANTIALIAS                    = 'anti', // antialiasing
  212.  
  213.  
  214.         COREMSG_PAINTER_GETCIRCLEDATA            = 'Pgcr',    // get circle data
  215.         COREMSG_PAINTER_SETCIRCLEDATA            = 'Pscr',    // set circle data
  216.             PGD_CIRCLE_CIRCLEMODE                        = 'crmd',
  217.                 PGD_CIRCLEMODE_DIAMETER                = 'cdia',
  218.                 PGD_CIRCLEMODE_RADIUS                    = 'crad',
  219.             PGD_CIRCLE_ASPECTRATIO                    = 'casp',    // aspect ratio circle
  220.  
  221.         COREMSG_PAINTER_GETPICKUPDATA            = 'Pgpd',    // get circle data
  222.         COREMSG_PAINTER_SETPICKUPDATA            = 'Pspd',    // set circle data
  223.             PGD_PICKUP_MODE                                    = 'mode', // mode
  224.                 PICKUP_MODE_SOLIDCOLOR                = 'soli', // mode
  225.                 PICKUP_MODE_TEXTURECLONE            = 'clon', // mode
  226.                 PICKUP_MODE_TEXTUREBRUSH            = 'brus', // mode
  227.             PGD_PICKUP_SOLID_RANGE                    = 'Srad', // sample radius
  228.             PGD_PICKUP_SOLID_ENABLESAMPLING    = 'Sran', // enable sampling
  229.  
  230.     COREMSG_DUMMY 
  231. };
  232.